Skip to content

implement UTF-8 for TodStringFile, ImageFont, DescParser#8

Merged
Electr0Gunner merged 1 commit into
LawnProject:mainfrom
Pistonight:fix/tod_string_utf
Jun 16, 2026
Merged

implement UTF-8 for TodStringFile, ImageFont, DescParser#8
Electr0Gunner merged 1 commit into
LawnProject:mainfrom
Pistonight:fix/tod_string_utf

Conversation

@Pistonight

Copy link
Copy Markdown
Contributor

Fixed UTF-8 issues in the strings file loading, font descriptor loading and image font width functions

Now strings file and font descriptor can be any of ANSI, UTF-8 or UTF-16 LE/BE and image font should work

Tested with strings and fonts from 1.1.0.1056 GOTY ZH.

There are extra commands like LayerSetExInfo Main ExInfoKeys0 ExInfoValues0; which I don't know what they are so I just added it as a stub to workaround "Unknown Command" error

@Electr0Gunner Electr0Gunner merged commit c5ef5e0 into LawnProject:main Jun 16, 2026
4 checks passed
@Pistonight Pistonight deleted the fix/tod_string_utf branch June 17, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants